<extend name="Public/base"/>

<block name="body">
	<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <h2>鉴定详情</h2>
    </div>
    <div class="tab-wrap">
    	<ul class="tab-nav nav">
			<li data-tab="tab1" class="current"><a href="javascript:void(0);">基 础</a></li>
			<li data-tab="tab2"><a href="javascript:void(0);">收 货</a></li>
			<li data-tab="tab3"><a href="javascript:void(0);">信 息</a></li>
			<li data-tab="tab4"><a href="javascript:void(0);">操 作</a></li>
			<li data-tab="tab5"><a href="javascript:void(0);">物 流</a></li>
		</ul>
		<div class="tab-content">
    		<form action="__SELF__" method="post" class="form-horizontal" autocomplete="off">
		    	<div id="tab1" class="tab-pane in tab1">
		    		<div class="form-item">
		    			<label class="item-label">鉴定单号</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.checkup_no}" disabled="disabled">
		    			</div>
		    		</div>
		    		<div class="form-item">
		    			<label class="item-label">下单会员</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.uid|get_username}" disabled="disabled">
		    			</div>
		    		</div>		    		
		    		<div class="form-item">
		    			<label class="item-label">下单时间</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.create_time|time_format}" disabled="disabled">
		    			</div>
		    		</div>
		    		<notempty name='info.pay_time'>
		    		<div class="form-item">
		    			<label class="item-label">付款时间</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.pay_time|time_format}" disabled="disabled">
		    			</div>
		    		</div>
		    		</notempty>		    		
		    		<div class="form-item">
		    			<label class="item-label">发货时间</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$seller_shipping.create_time|time_format}" disabled="disabled">
		    			</div>
		    		</div>
		    		<div class="form-item">
		    			<label class="item-label">客户留言</label>
		    			<div class="controls">
		    				<label class="textarea input-large">
		    					<textarea disabled="disabled">{$info.comment}</textarea>
		    				</label>
		    			</div>
		    		</div>
		    	</div>
				<div id="tab2" class="tab-pane tab2">					
					<div class="form-item">
		    			<label class="item-label">收货人</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.realname}" disabled="disabled">
		    			</div>
		    		</div>
		    		<div class="form-item">
		    			<label class="item-label">联系电话</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.mobile}" disabled="disabled">
		    			</div>
		    		</div>
		    		<div class="form-item">
		    			<label class="item-label">省份</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.province_id|get_table_field=###,'province_id','province','hat_province'}" disabled="disabled">
		    			</div>
		    		</div>
		    		<div class="form-item">
		    			<label class="item-label">城市</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.city_id|get_table_field=###,'city_id','city','hat_city'}" disabled="disabled">
		    			</div>
		    		</div>
		    		<div class="form-item">
		    			<label class="item-label">区县</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.area_id|get_table_field=###,'area_id','area','hat_area'}" disabled="disabled">
		    			</div>
		    		</div>		    		
		    		<div class="form-item">
		    			<label class="item-label">详细地址</label>
		    			<div class="controls">
		    				<label class="textarea input-large">
		    					<textarea disabled="disabled">{$info.address}</textarea>
		    				</label>
		    			</div>
		    		</div>
				</div>
				<div id="tab3" class="tab-pane tab3">
				<div class="form-item">
		    			<label class="item-label">总价</label>
		    			<div class="controls">
		    				<input type="text" name="total" class="text input-large" value="{$info.total}" >
		    			</div>
		    		</div>
					<div class="form-item">
		    			<label class="item-label">运费</label>
		    			<div class="controls">
		    				<input type="text" name="shipping_price" class="text input-large" value="{$info.shipping_price}" >
		    			</div>
		    		</div>
		    		
					<div class="form-item">
		    			<label class="item-label">数量</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.quantity}"  disabled="disabled">
		    			</div>
		    		</div>
		    		<div class="form-item">
		    			<label class="item-label">鉴定费用</label>
		    			<div class="controls">
		    				<input type="text" name="identify_price" class="text input-large" value="{$info.identify_price}">
		    			</div>
		    		</div>
		    		<div class="form-item">
		    			<label class="item-label">客户描述</label>
		    			<div class="controls">
		    				<label class="textarea input-large">
		    					<textarea disabled="disabled">{$info.description}</textarea>
		    				</label>
		    			</div>
		    		</div>
					<div class="form-item">
				     	<label class="item-label">视频文件</label>
				     	<div class="controls">				     		
				     		<div class="upload-img-box">
				     			<notempty name="info.movie">
				     				<input type="hidden" name="movie" value="{$info.movie}"/>
				     				<video id="myvideo" class="video-js vjs-big-play-centered" controls preload="auto" width="480" height="240" data-setup="{}">
				     					<source src="__ROOT__/Uploads/Movie/{$info.movie|get_movie='savepath'}{$info.movie|get_movie='savename'}" type='{$info.movie|get_movie='mime'}'>
				     				</video>
				     			</notempty>
				     		</div>				     		
						</div>
					</div>
				 	<div class="form-item">
				     	<label class="item-label">拍品图片</label>
				     	<div class="controls">				     		
				     		<div class="upload-img-box">
				     			<volist name="pics" id="pic">
				     				<div class="upload-pre-item"><input type="hidden" name="pic[]" value="{$pic.cover_id|default=''}"/><img src="__ROOT__{$pic.cover_id|get_cover='path'}"/><span class="btn-close" title="删除图片" onclick="$(this).parent().remove();"></span></div>
				     			</volist>
				     		</div>				     		
						</div>
					</div>
				</div>
				<div id="tab4" class="tab-pane tab4">
				<div class="form-item">
		    			<label class="item-label">鉴定状态</label>
		    			<div class="controls">
		    			<select name="status">
							<volist name=":getStatus('checkup_status')" id="val" key="key">
								<option value="{$key-1}" <eq name="info.status" value="$key-1">selected</eq>>{$val}</option>
							</volist>
						</select>
		    			</div>
		    		</div>
		    		<div class="form-item">
		    			<label class="item-label">点评</label>
		    			<div class="controls">
		    				<label class="textarea input-large">
		    					<textarea name="remark">{$info.remark}</textarea>
		    				</label>
		    			</div>
		    		</div>
				</div>
				<div id="tab5" class="tab-pane tab5">
					<div class="form-item">
						<label class="item-label">发往鉴定中心 <notempty name="seller_shipping">- {$seller_shipping.shipping_code|get_table_field=###,'code','title','shipping'} - {$seller_shipping.code}</notempty></label>
						<div class="controls">
							<div class="data-table table-striped">
								<table class="">
									<thead>
										<tr>
											<th class="">时间</th>
											<th class="">记录</th>
										</tr>
									</thead>
									<tbody>
										<notempty name="seller_shipping.shipping.data">
											<volist name="seller_shipping.shipping.data" id="shipping">
												<tr>
													<td>{$shipping.time}</td>
													<td>{$shipping.content}</td>
												</tr>
											</volist>
										<else/>
											<tr>
												<td colspan="2" class="text-center"> aOh! 暂时还没有内容! </td>
											</tr>
										</notempty>
									</tbody>
								</table>
							</div>
						</div>
					</div>
					<div class="form-item">
						<label class="item-label"></label>
						<label class="item-label">发往买家 <notempty name="seller_shipping">- {$admin_shipping.shipping_code|get_table_field=###,'code','title','shipping'} - {$admin_shipping.code}</notempty></label>
						<div class="controls">
							<div class="data-table table-striped">
								<table class="">
									<thead>
										<tr>
											<th class="">时间</th>
											<th class="">记录</th>
										</tr>
									</thead>
									<tbody>
										<notempty name="admin_shipping.shipping.data">
											<volist name="admin_shipping.shipping.data" id="shipping">
												<tr>
													<td>{$shipping.time}</td>
													<td>{$shipping.content}</td>
												</tr>
											</volist>
										<else/>
											<tr>
												<td colspan="2" class="text-center"> aOh! 暂时还没有内容! </td>
											</tr>
										</notempty>
									</tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
				<div class="form-item">
				<button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
					<a class="btn btn-return" href="{:U('Checkup/index')}">返 回</a>
					<input type="hidden" name="id" value="{$info.id}">
				</div>
			</form>
		</div>
	</div>
</block>

<block name="script">
<script type="text/javascript">
//导航高亮
highlight_subnav('{:U('Checkup/index')}');
showTab();
</script>
</block>